home *** CD-ROM | disk | FTP | other *** search
/ CD World Haziran 1997 / CD World Haziran 1997.iso / Explorer Yardimcilari / PiXCL Tools / Odi_demo.px_ / Odi_demo.px
Encoding:
Text File  |  1996-08-06  |  5.1 KB  |  157 lines

  1. ODI_DEMO:
  2.     SetColorPalette(GENERATE)
  3.     ODI_Name$ = "ODI Demo"
  4.     WinGetActive(Name$)
  5.     WinTitle(Name$,ODI_Name$)
  6.     UseCoordinates(PIXEL)
  7.     DirGet(SourceDir$)
  8.     WinShow(ODI_Name$,MAXIMIZE,Res)
  9.     WinShow(ODI_Name$,TOPMOST,Res)
  10.     UseBackground(TRANSPARENT,0,224,224)
  11.     DrawBackground
  12.     InfoMenu(REMOVE)    
  13.     WaitInput(100)  {let NT and 95 catch up}
  14.     SetMenu("Exit",ODI_exit,
  15.         ENDPOPUP)
  16.  
  17.     Set File_01$ = SourceDir$ + "\ov01.rle"
  18.     Set File_02$ = SourceDir$ + "\ov02.rle"
  19.     Set File_03$ = SourceDir$ + "\ov03.rle"
  20.     Set File_04$ = SourceDir$ + "\ov04.rle"
  21.     Set File_05$ = SourceDir$ + "\ov05.rle"
  22.     Set File_06$ = SourceDir$ + "\ov06.rle"
  23.     Set File_07$ = SourceDir$ + "\ov07.rle"
  24.     Set File_08$ = SourceDir$ + "\ov08.rle"
  25.     Set File_09$ = SourceDir$ + "\ov09.rle"
  26.     Set File_10$ = SourceDir$ + "\ov10.rle"
  27.     Set File_11$ = SourceDir$ + "\ov11.rle"
  28.     Set File_12$ = SourceDir$ + "\ov12.rle"
  29.     Set File_13$ = SourceDir$ + "\ovxx.rle"
  30.     Set File_14$ = SourceDir$ + "\ov14.rle"
  31.  
  32.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,0,0,0)
  33.     DrawText(17,12,"TapeBack Data Inc ")
  34.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,255,0,0)
  35.     DrawText(15,10,"TapeBack Data Inc ")
  36.  
  37.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,0,0,0)
  38.     DrawText(17,66,"TapeMax series")
  39.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,255,0,0)
  40.     DrawText(15,64,"TapeMax series")
  41.  
  42.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,0,0,0)
  43.     DrawText(17,120,"9 track tape drives")
  44.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,255,0,0)
  45.     DrawText(15,118,"9 track tape drives")
  46.  
  47.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,0,0,0)
  48.     DrawText(17,174,"and controllers.")
  49.     UseFont("Arial",31,51,BOLD,ITALIC,NOUNDERLINE,255,0,0)
  50.     DrawText(15,172,"and controllers.")
  51.  
  52.  
  53.     UseFont("Arial",19,31,BOLD,ITALIC,NOUNDERLINE,0,0,0)
  54.     Drawtext(32,622,"Select from the above menus, images,")
  55.     UseFont("Arial",19,31,BOLD,ITALIC,NOUNDERLINE,120,240,240)
  56.     Drawtext(30,620,"Select from the above menus, images,")
  57.  
  58.     UseFont("Arial",19,31,BOLD,ITALIC,NOUNDERLINE,0,0,0)
  59.     Drawtext(32,656,"or 3D buttons to start !")
  60.     UseFont("Arial",19,31,BOLD,ITALIC,NOUNDERLINE,120,240,240)
  61.     Drawtext(30,654,"or 3D buttons to start !")
  62.  
  63. { top row, MS-DOS or Windows demo }
  64.     DrawSizedBitmap( 660,30,816,162,File_04$)
  65.     DrawSizedBitmap( 820,30,976,162,File_05$)
  66.  
  67. { Second row, PC interfaces, software and corporate information }
  68.     DrawSizedBitmap( 20,220,176,352,File_01$)
  69.     DrawSizedBitmap(180,220,336,352,File_02$)
  70.     DrawSizedBitmap(340,220,496,352,File_03$)
  71.     DrawSizedBitmap(500,220,656,352,File_05$)
  72.     DrawSizedBitmap(660,220,816,352,File_06$)
  73.     DrawSizedBitmap(820,220,976,352,File_08$)
  74.     
  75. { Third row, tape drives and workstations, unused windows }
  76.     DrawSizedBitmap( 20,380,176,512,File_09$)
  77.     DrawSizedBitmap(180,380,336,512,File_10$)
  78.     DrawSizedBitmap(340,380,496,512,File_11$)
  79.     DrawSizedBitmap(500,380,656,512,File_13$)
  80.     DrawSizedBitmap(660,380,816,512,File_13$)
  81.     DrawSizedBitmap(820,380,976,512,File_14$)
  82.  
  83.  
  84.     SetMouse(660, 30,816,162,Region_0,X,Y,
  85.          820, 30,976,162,Region_0,X,Y,
  86.           20,220,176,352,Region_0,X,Y,
  87.          180,220,336,352,Region_0,X,Y,
  88.          340,220,496,352,Region_0,X,Y,
  89.          500,220,656,352,Region_0,X,Y,
  90.          660,220,816,352,Region_0,X,Y,
  91.          820,220,976,352,Region_Info,X,Y,
  92.  
  93.           20,380,176,512,Region_0,X,Y,
  94.          180,380,336,512,Region_0,X,Y,
  95.          340,380,496,512,Region_0,X,Y,
  96.          500,380,656,512,Region_0,X,Y,
  97.          660,380,816,512,Region_0,X,Y,
  98.          820,380,976,512,Region_Info,X,Y)
  99.  
  100.  
  101.     Button( 660,163,816,188,"MS-DOS Demo",Region_0,
  102.         820,163,976,188,"Windows Demo",Region_0,
  103.          20,353,176,378,"GTX-16 AT bus",Region_0,
  104.             180,353,336,378,"XPT-8 AT bus",Region_0,
  105.             340,353,496,378,"BL/2 Microchannel",Region_0,
  106.             500,353,656,378,"Std Software",Region_0,
  107.             660,353,816,378,"Opt Software",Region_0,
  108.             820,353,976,378,"Corporate",Region_Info,
  109.          20,513,176,538,"SCSI 9-track",Region_0,
  110.         180,513,336,538,"Pertec 9-track",Region_0,
  111.         340,513,496,538,"Parallel 9-track",Region_0,
  112.         500,513,656,538,"region 12",Region_0,
  113.         660,513,816,538,"region 13",Region_0,
  114.         820,513,976,538,"CONTINUE !",ODI_exit)
  115.  
  116. Wait_for_Input:
  117.     WaitInput()
  118.  
  119.  
  120. Region_0:
  121.     MessageBox(OK,1,INFORMATION,
  122. "A PiXCL 4.0 application can have both buttons and
  123. mouse active areas made of images loaded from your
  124. hard disk. This demo makes use of the Left Mouse
  125. only, but there are an additional six Left and 
  126. Right modes also available.
  127.  
  128. Selecting an image could be programmed to display
  129. and / or print product information.",
  130.     "Active Area or Button selected",Res)
  131.     Goto  Wait_for_Input
  132.  
  133.  
  134.  
  135. Region_Info:
  136.     MessageBox(OK,1,INFORMATION,
  137. "This is a new 32 bit Windows application written in PiXCL, 
  138. and started by the PiXCL Run(...) command. It shows how left 
  139. mouse active areas, 3D buttons and bitmap display might be
  140. used in a hardware demo program written in PiXCL.
  141.  
  142. Any other Windows application, eg NotePad, Paintbrush, or
  143. third party program can be started by PiXCL.
  144.  
  145. Click the 'Continue' button or 'Exit!' on the main menu bar
  146. to return to the PiXCL Tools demonstration.
  147.  
  148. Disclaimer:
  149. As far as we know, TapeBack Data Inc. is a not a real company.",
  150.  
  151.     "Running other Applications...",Res)
  152.  
  153.     Goto  Wait_for_Input
  154.  
  155.     
  156. ODI_exit:
  157.     End